package com.ftwj.demo.permission.vo;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* <p>Title: LoginEntity</p>  
* <p>Description: 用户登录传输对象</p>
* <p>Copyright: Copyright (c) 2020 </p>  
* <p>Company: 兰州飞天网景信息产业有限公司</p>    
* @author WangSLi
* @date 2020年4月8日 下午3:48:36
* @version V1.0
 */

@ApiModel(value="LoginEntity对象", description="用户登录对象")
public class LoginEntity implements Serializable {

	/** serialVersionUID*/ 
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "用户账号")
	private String username;
	@ApiModelProperty(value = "用户电话")
	private String phone;
	@ApiModelProperty(value = "登录账号", hidden = true)
	private String loginname;
	@NotEmpty
	@ApiModelProperty(value = "用户密码")
	private String password;
	@ApiModelProperty(value = "是否使用记住我")
	private Boolean rememberme = false;
	//@NotEmpty
	@ApiModelProperty(value = "验证码KEY")
	private String key;
	//@NotEmpty
	@ApiModelProperty(value = "验证码")
	private String captcha;
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Boolean getRememberme() {
		return rememberme;
	}
	public void setRememberme(Boolean rememberme) {
		this.rememberme = rememberme;
	}
	public String getCaptcha() {
		return captcha;
	}
	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getLoginname() {
		return loginname;
	}
	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}
	
	@Override
	public String toString() {
		return "LoginEntity [username=" + username + ", phone=" + phone + ", loginname=" + loginname + ", password=" + password + ", rememberme="
				+ rememberme + ", key=" + key + ", captcha=" + captcha + "]";
	}
	
}
